* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","Segoe UI","Microsoft Yahei",Tahoma,Arial,STHeiti,sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
    word-wrap: break-word;
}

input {
    font-family: inherit;
}

.pages {
    height: 100%;
    width: 100%;
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
}

.login.page {
    background: #000;
    color: #fff;
}

.login.page .form {
    height: 100px;
    margin-top: -100px;
    position: absolute;
    text-align: center;
    top: 50%;
    width: 100%;
}

.login.page .title {
    font-size: 200%;
}

.login.page .usernameInput {
    font-size: 200%;
    text-align: center;
}

.index.page {
   display: none;
}

.messages {
    font-size: 150%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.message .username:after {
    content: ':';
    font-weight: bold;
    color: #ccc;
}

.inputMessage {
    font-size: 100%;
}

.log {
    color: gray;
    font-size: 70%;
    margin: 5px;
    text-align: center;
}

.menuArea {
    width: 250px;
    height: 100%;
    float: left;
    overflow: auto;
    padding: 12px;
    background: #f8f8f8;
    border-right: 1px solid #ccc;
    box-shadow: 1px 0 3px rgba(0,0,0,0.08);
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    background: #fff;
}

.menuArea .menu li:before,
.participant.isSelf .menu li:before {
    font-weight: bold;
    margin-left: -15px;
    margin-right: 5px;
}

.menuArea .menu li:before {
    content: '+';
    color: green;
}

.menuArea .menu li,
.participant.isSelf .menu li {
    cursor: pointer;
    padding-left: 25px;
}

.participant.isSelf .menu li:before {
    content: '-';
    color: brown;
}


.menu li .name {
    padding-right: 3em;
}

.menu li .price {
    float: right;
    width: 3em;
    margin-left: -3em;
    color: #ccc;
}

.participants {
    width: 620px;
    height: 100%;
    overflow: auto;
    float: left;
}

.participant {
    width: 276px;
    margin: 12px;
    padding: 12px;
    float: left;
    background: lightyellow;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.participant.isSelf {
    background: lightcyan;
}

.participant .empty {
    text-align: center;
    padding: 20px 0;
    color: #ccc;
}

.participant .name {
    text-align: center;
    padding: 5px;
    margin-bottom: 10px;
}

.chatArea {
    margin-left: 870px;
    height: 100%;
    padding-bottom: 60px;
    position: relative;
}

.messages {
    height: 100%;
    margin: 0;
    overflow-y: scroll;
    padding: 10px 20px 10px 20px;
}

.message.typing .messageBody {
    color: gray;
}

.username {
    float: left;
    font-weight: 700;
    overflow: hidden;
    padding-right: 15px;
    text-align: right;
}

.inputMessage {
    border: 10px solid #000;
    bottom: 0;
    height: 60px;
    left: 0;
    outline: none;
    padding-left: 10px;
    position: absolute;
    right: 0;
    width: 100%;
}
